package com.crr.mall.product.feign;

import com.crr.mall.common.bean.ResultBean;
import com.crr.mall.common.to.es.SkuEsModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("renrenmall-search")
public interface ESFeignService {

    @PostMapping("/search/save/product")
    ResultBean productSearch(@RequestBody List<SkuEsModel> skuEsModels);
}
